package org.langqiao.string;
import java.io.UnsupportedEncodingException;


public class TranslateCharacter {
	
	public static void main(String[] args){
		String s = translate1("?");
		System.out.println(s);
	}
	public static String translate1(String str){
		String tempStr="";
		try {
			tempStr=new String(str.getBytes("ISO-8859-1"),"GBK");
			tempStr=tempStr.trim();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return tempStr;
		
	}

}
